package com.tensquare.qa.client;

import com.tensquare.qa.client.impl.LabelClientImpl;
import dto.ResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "tensquare-base", fallback = LabelClientImpl.class)
public interface LabelClient {
    /**
     * 远程调用根据id查询一个标签 */
    /**
     * 根据id查询
     */
    @GetMapping("/label/{labelId}")
    public ResultDTO findById(@PathVariable(name = "labelId") String id) ;

}
